const db = wx.cloud.database()
const step = db.collection('HH_Step')

Page({
  //设置地图的经纬度以及图片
  data: {
    markers: [{
      iconPath: "../../images/school.png",
      id: 0,
      latitude: 30.8523075100,
      longitude: 104.4642258200,
      width: 25,
      height: 25
    }],
    step:[]
  },
  //加载路线的步骤
  onLoad:function(e){
    step.where({
      Step:'busStudent'
    }).get().then(res=>{
      this.setData({
        step:res.data
      })
    })
  }
})